import type { AxiosRequestConfig, AxiosResponse } from 'axios'
interface HyInterceptors<T = AxiosResponse> {
  requestSuccesFn?: (config: any) => any
  requestFinFn?: (err: any) => any
  responseSuccesFn?: (res: T) => T
  responseFinFn?: (err: any) => any
}

export interface HyRequestConfig<T = AxiosResponse> extends AxiosRequestConfig {
  interceptors?: HyInterceptors<T>
}
